Okay, now it is time to check if mapping, if config is what the user requested and also print an appropriate
message.
So let's uncomment this.
Okay, here the first line we are the first part which is giving giving me the current Mac address.
And then we are printing that okay current Mac address.
And then this will change the Mac address okay.
So now it is time to use again the current Mac.
Okay let's use current Mac.
And it is equal to get what current Mac again and use options dot interface dot interface.
You may ask why did you repeated this okay.
Interface options dot interface option dot interface get arguments.
Here is not what I want.
It is get current Mac.
Okay, you may ask why did you repeated this?
Because right now we are overwriting this.
Okay.
Right now it has a current Mac.
And here we change the Mac.
Now this current Mac has something else.
Okay.
It has the new Mac address here.
Now let's change check.
Okay.
If this current Mac is equal equal.
So these two equal men is going to check the equality okay.
If it is equal to options dot new Mac okay.
We have option dot new Mac.
Do we have new Mac.
Maybe we have it okay.
Option dot new underscore Mac.
Then we will be printing something.
What is that.
Um okay.
We have the option that new Mac here and I'm using it here too.
So if this current Mac is equal to options dot new Mac address, then let's print.
And a very beautiful message here okay.
And we can say that Mac address was Successfully changed to something which is say, Mac address successfully.
Changed to.
Here we are going to give or concatenate the current Mac okay.
Current Mac.
If this current Mac is not string, so we need to change it to string okay.
But right now let's let it be like this.
And then we have the else part.
In else part.
We are going to print another message and it is going to be the Mac address.
The Mac address did not change the okay, let me save this and go back to terminal here and let's try
to change it to this one.
And you see it is giving me up.
That is because we haven't used sudo okay.
And you see that the Mac address did not change.
That was one of the things that we just provided.
Okay, so now if I hit enter and provide a password for this and.
Again, it's not changed.
Let me go to sudo su.
And now if I just use Python Mac changer interface to this one let's hit enter.
Now you see that changing Mac address for eth0 to this okay.
And also the Mac address successfully changed to this one okay.
And also you have seen that while it is not changed it is giving me the message like this.
The Mac address did not change.
So I need to change this to negative okay Mac address change successfully to correct.
So and finally you have completed your application okay.
Now you have a application that will change Mac address for you okay.
So I think it is completed.
Now let's go for the next section and see what is next.