WEBVTT

00:01.040 --> 00:09.240
Okay, now it is time to check if mapping, if config is what the user requested and also print an appropriate

00:09.240 --> 00:09.800
message.

00:10.080 --> 00:11.760
So let's uncomment this.

00:11.800 --> 00:18.640
Okay, here the first line we are the first part which is giving giving me the current Mac address.

00:18.640 --> 00:21.400
And then we are printing that okay current Mac address.

00:21.400 --> 00:24.280
And then this will change the Mac address okay.

00:24.640 --> 00:30.600
So now it is time to use again the current Mac.

00:30.600 --> 00:32.680
Okay let's use current Mac.

00:33.520 --> 00:47.280
And it is equal to get what current Mac again and use options dot interface dot interface.

00:48.880 --> 00:52.000
You may ask why did you repeated this okay.

00:52.040 --> 00:56.920
Interface options dot interface option dot interface get arguments.

00:56.920 --> 01:00.240
Here is not what I want.

01:00.280 --> 01:02.160
It is get current Mac.

01:02.200 --> 01:04.480
Okay, you may ask why did you repeated this?

01:04.480 --> 01:06.760
Because right now we are overwriting this.

01:06.800 --> 01:07.040
Okay.

01:07.080 --> 01:08.690
Right now it has a current Mac.

01:09.130 --> 01:11.130
And here we change the Mac.

01:11.130 --> 01:13.450
Now this current Mac has something else.

01:13.490 --> 01:13.930
Okay.

01:13.970 --> 01:15.970
It has the new Mac address here.

01:15.970 --> 01:17.810
Now let's change check.

01:17.850 --> 01:18.210
Okay.

01:18.450 --> 01:23.850
If this current Mac is equal equal.

01:24.010 --> 01:28.170
So these two equal men is going to check the equality okay.

01:28.210 --> 01:35.650
If it is equal to options dot new Mac okay.

01:35.690 --> 01:37.810
We have option dot new Mac.

01:37.850 --> 01:38.930
Do we have new Mac.

01:39.090 --> 01:40.730
Maybe we have it okay.

01:40.770 --> 01:44.130
Option dot new underscore Mac.

01:45.810 --> 01:48.170
Then we will be printing something.

01:48.850 --> 01:50.210
What is that.

01:50.210 --> 01:51.730
Um okay.

01:51.730 --> 01:55.810
We have the option that new Mac here and I'm using it here too.

01:55.850 --> 02:02.290
So if this current Mac is equal to options dot new Mac address, then let's print.

02:03.970 --> 02:08.370
And a very beautiful message here okay.

02:12.370 --> 02:22.130
And we can say that Mac address was Successfully changed to something which is say, Mac address successfully.

02:24.650 --> 02:25.570
Changed to.

02:26.450 --> 02:32.490
Here we are going to give or concatenate the current Mac okay.

02:34.770 --> 02:35.570
Current Mac.

02:35.610 --> 02:39.690
If this current Mac is not string, so we need to change it to string okay.

02:39.690 --> 02:42.010
But right now let's let it be like this.

02:42.010 --> 02:43.490
And then we have the else part.

02:43.490 --> 02:44.050
In else part.

02:44.050 --> 02:50.090
We are going to print another message and it is going to be the Mac address.

02:52.490 --> 03:05.490
The Mac address did not change the okay, let me save this and go back to terminal here and let's try

03:05.490 --> 03:06.930
to change it to this one.

03:06.930 --> 03:12.210
And you see it is giving me up.

03:12.850 --> 03:16.930
That is because we haven't used sudo okay.

03:17.810 --> 03:20.370
And you see that the Mac address did not change.

03:20.610 --> 03:24.180
That was one of the things that we just provided.

03:24.220 --> 03:29.700
Okay, so now if I hit enter and provide a password for this and.

03:31.980 --> 03:32.980
Again, it's not changed.

03:32.980 --> 03:34.620
Let me go to sudo su.

03:35.500 --> 03:43.300
And now if I just use Python Mac changer interface to this one let's hit enter.

03:43.300 --> 03:47.460
Now you see that changing Mac address for eth0 to this okay.

03:47.460 --> 03:52.900
And also the Mac address successfully changed to this one okay.

03:52.980 --> 03:59.940
And also you have seen that while it is not changed it is giving me the message like this.

03:59.940 --> 04:01.260
The Mac address did not change.

04:01.260 --> 04:07.580
So I need to change this to negative okay Mac address change successfully to correct.

04:08.380 --> 04:14.980
So and finally you have completed your application okay.

04:14.980 --> 04:20.100
Now you have a application that will change Mac address for you okay.

04:21.060 --> 04:23.500
So I think it is completed.

04:23.500 --> 04:27.820
Now let's go for the next section and see what is next.
